package com.ruoyi.gas.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 安全事件详情对象 gas_event_detail
 *
 * @author ruoyi
 * @date 2023-12-11
 */
public class GasEventDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 事件id */
    @Excel(name = "事件id")
    private Long eventId;

    /** 设备id */
    @Excel(name = "设备id")
    private String deviceId;

    /** 设备采集值 */
    @Excel(name = "设备采集值")
    private String concentration;

    /** 数据单位（字典值） */
    @Excel(name = "数据单位", readConverterExp = "字=典值")
    private Long dataUnit;

    /** 检测对象（字典值） */
    @Excel(name = "检测对象", readConverterExp = "字=典值")
    private Long monitorObject;

    /** 通道信息 */
    @Excel(name = "通道信息")
    private String channelCode;

    /**
     * 单位名称
     */
    private String unitName;

    /**
     * 对象名称
     */
    private String objectName;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setEventId(Long eventId)
    {
        this.eventId = eventId;
    }

    public Long getEventId()
    {
        return eventId;
    }
    public void setDeviceId(String deviceId)
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId()
    {
        return deviceId;
    }
    public void setConcentration(String concentration)
    {
        this.concentration = concentration;
    }

    public String getConcentration()
    {
        return concentration;
    }
    public void setDataUnit(Long dataUnit)
    {
        this.dataUnit = dataUnit;
    }

    public Long getDataUnit()
    {
        return dataUnit;
    }
    public void setMonitorObject(Long monitorObject)
    {
        this.monitorObject = monitorObject;
    }

    public Long getMonitorObject()
    {
        return monitorObject;
    }
    public void setChannelCode(String channelCode)
    {
        this.channelCode = channelCode;
    }

    public String getChannelCode()
    {
        return channelCode;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getObjectName() {
        return objectName;
    }

    public void setObjectName(String objectName) {
        this.objectName = objectName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("eventId", getEventId())
            .append("deviceId", getDeviceId())
            .append("concentration", getConcentration())
            .append("dataUnit", getDataUnit())
            .append("monitorObject", getMonitorObject())
            .append("channelCode", getChannelCode())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("unitName", getUnitName())
            .append("objectName", getObjectName())
            .toString();
    }
}
